package com.car.carsharing.mapper;

import com.car.carsharing.dto.CouponDTO;
import com.car.carsharing.pojo.Coupon;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CouponMapper {
    List<Coupon> getCoupon(Coupon coupon);

    List<CouponDTO> getUserCouponById(@Param("userId") Integer userId);

    Coupon selectCoupon(@Param("couponId") Integer couponId);

    int updateCoupon(Coupon coupon);

    int addCoupon(Coupon coupon);

    List<CouponDTO> getCouponNum();
}
